const KEY = 'heimamm64-token'

const saveToken = token => {
  localStorage.setItem(KEY, token)
}

const getToken = () => {
  return localStorage.getItem(KEY)
}

const removeToken = () => {
  localStorage.removeItem(KEY)
}

// 下面是按需导出，千万不要把`{}`理解成对象，它就是一个语法标识
export { saveToken, getToken, removeToken }
